package com.aoxiang.zbox.model.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * Description:
 *
 * @author: aoxiang
 * @create: 2025-03-29 10:56
 **/

@Data
public class RegisterUser {
    @NotEmpty(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度必须在3-20之间")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20之间")
    private String password;

    @NotEmpty(message = "账号不能为空")
    @Size(max = 20, message = "账号长度必须在1-20之间")
    private String account;
}
